using Godot;
using System;

[GlobalClass]
public partial class UIButton : Button
{
	[Signal]
	public delegate void OnPressedEventHandler(UIButton button);

	[Export(PropertyHint.MultilineText)]
	public string CommandString;

	public override void _Ready()
	{
		base._Ready();
		Pressed += OnButtonPressedEventHandler;
	}

	private void OnButtonPressedEventHandler()
	{
		AudioManager.PlayEffect("click");
		EmitSignal(SignalName.OnPressed, this);
	}

}